//
//  YGArticleBLL.h
//  yuanshangyiliao
//
//  Created by icholab on 2021/5/3.
//

#import <Foundation/Foundation.h>
#import "YGArticleListModel.h"
#import "YGScienceCenterArticleDetailModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface YGArticleBLL : NSObject

+ (void)requestArticleWithID:(NSString*)typeId
                        name:(NSString *)name
                        page:(NSInteger)page
                        Success:(void (^)(YGArticleListModel *model))success
fail:(void (^)(NSError *error))fail;

+ (void)requestSubscribeithID:(NSString*)typeId
                        Success:(void (^)(void))success
                         fail:(void (^)(NSError *error))fail;

//查询科普中心文章详情
+(void)requestScienceCenterArticleDetailWithId:(NSString *)id
                                        Success:(void (^)(YGScienceCenterArticleDetailModel *model))success
                                          fail:(void (^)(NSError *error))fail;

@end

NS_ASSUME_NONNULL_END
